<div class="panel-default">
  <table lay-filter="demo" lay-size='lg'>
    <thead>
      <tr>
        <th lay-data="{field:'attr'}" style="width:30%;">属性</th>
        <th lay-data="{field:'attr_value'}">值</th>
      </tr>
    </thead>

    <tbody>

    <tr>
      <td><%= Company.human_attribute_name(:address) %>:</td>
      <td><%= @company.address %></td>
    </tr>

    <tr>
      <td><%= Company.human_attribute_name(:brief) %>:</td>
      <td><%= @company.brief %></td>
    </tr>

    <tr>
      <td><%= Company.human_attribute_name(:content) %>:</td>
      <td><%= @company.content %></td>
    </tr>

    <tr>
      <td><%= Company.human_attribute_name(:logo) %>:</td>
      <td><%= image_tag @company.logo_url, style: 'height: 100%' rescue ''%></td>
    </tr>

    <tr>
      <td><%= Company.human_attribute_name(:name) %>:</td>
      <td><%= @company.name %></td>
    </tr>

    </tbody>
  </table>

  <div class="actions_show">
    <%= link_to t('buttons.edit'), edit_admin_company_path(@company), class: 'layui-btn' %>
    <%= link_to t('buttons.back'), admin_companies_path, class: 'layui-btn layui-btn-normal' %>
  </div>
</div>

<!-- 放大图片 -->
<div class='elastic_show' hidden>
  <!-- 黑影 -->
  <div class="mask" hidden></div>
  <%= image_tag ''%>
</div>